package nyangweb.shop.start;



import nyangweb.shop.R;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.actionbarsherlock.app.SherlockActivity;


public class Start extends SherlockActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start);
		
		startActivity(new Intent(this, SplashActivity.class));
		initialize();
		
		
		
		 //Let's Start!
		  Button bt = (Button) findViewById(R.id.button1);
	  		bt.setOnClickListener(new OnClickListener() {

	  			@Override
	  			public void onClick(View v) {
	  				
	  				Intent intent = new Intent(Start.this, MainActivity.class); 
	  				startActivity(intent);
	  				finish();
	  				
	  				
	  			}
	  		});

	}

	
	
	private void initialize()
	  {
	      InitializationRunnable init = new InitializationRunnable();
	      new Thread(init).start();
	  }

	  class InitializationRunnable implements Runnable
	  {
	      public void run()
	      {
	          // do_something
	    	
	      }
	  }
	
	  
	@Override
	public boolean onCreateOptionsMenu(com.actionbarsherlock.view.Menu menu) {
		// TODO Auto-generated method stub
		return super.onCreateOptionsMenu(menu);
	}




}
